package com.xiang.utils;

import java.util.regex.Pattern;

/**
 * 手机号码验证工具
 */
public class MobileNumberValidator {

  private static final String MOBILE_NUMBER_PATTERN = "^1[3-9]\\d{9}$";
  private static final Pattern pattern = Pattern.compile(MOBILE_NUMBER_PATTERN);

  public static boolean validate(String mobileNumber) {
    return pattern.matcher(mobileNumber).matches();
  }
}
